from hashlib import md5

a = 'abc123'
print(md5(a.encode('utf-8')).hexdigest())